# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yamllint
pkgver=1.27.1
pkgrel=0
pkgdesc="A linter for YAML files"
url="https://github.com/adrienverge/yamllint"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-pathspec py3-yaml"
makedepends="py3-setuptools"
source="https://github.com/adrienverge/yamllint/archive/v$pkgver/yamllint-$pkgver.tar.gz
	skip-locale-tests.patch"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
c6da87af4e26e62bf822955171b6e612efa24555da3ecb8c298e15c50ecbf3f921ea8cad491f19e50736234933abc28c998949324c41011bda419f90ccd6ce8d  yamllint-1.27.1.tar.gz
abf8e7089ffa29efd8cea682d7b1178a3a93a5f1158bdf6d058437308e2dce33b72278a303b5a1b9e7dc57040c414ba7945c19b0500788cd3426c9192bce5440  skip-locale-tests.patch
"
